/* eslint-disable global-require */
const plugins = () => [
  require('babel-plugin-macros'),
  [
    require('@babel/plugin-proposal-class-properties').default,
    {
      loose: true,
    },
  ],
  [require('babel-plugin-transform-vue-jsx')],
  [require('@babel/plugin-proposal-optional-chaining')],
];

module.exports = {
  presets: [
    '@vue/app'
  ],
  plugins: plugins()
}
